class CreateMisElinks < ActiveRecord::Migration
  def self.up
    create_table "mis_elinks", :force => true do |t|
      t.column "elink_id", :integer
      t.column "user_id", :integer
      t.column "updated_at", :datetime
      t.column "estado", :string
    end

    add_index "mis_elinks", ["elink_id", "user_id"], :name => "mis_elinks_elink_id_index", :unique => true
  end

  def self.down
    remove_index "mis_elinks", "elink_id"

    drop_table "mis_elinks"
  end
end
